import { AbsoluteLocation, FinalizeHandler, InitializeHandler, InitializeHandlerOptions } from "@smithy/types";

export type input = Array<string>;
export type output = object;

export const getConcatMiddleware =
  (message: string) =>
  (next: FinalizeHandler<input, output>): InitializeHandler<input, output> =>
  (args: any) =>
  next({
    ...args,
    input: args.input.concat(message),
    request: undefined as any,
  });


export function mockOptions(options:Record<string,Object>):(InitializeHandlerOptions & AbsoluteLocation){
  return {
    ...options
  }
}